import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Menu {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ type: 'varchar', name: 'name' })
  name: string;

  @Column()
  type: number;

  @Column()
  title: string;

  @Column()
  path: string;

  @Column()
  icon: string;

  @Column()
  sort_id: number;

  @Column()
  parent_id: number;

  @Column()
  status: number;

  @Column()
  description: string;
}
